package com.cskaoyan.service;

import com.cskaoyan.exceptionJY.CodeErrorException;
import com.cskaoyan.exceptionJY.PhoneNumberException;
import com.cskaoyan.exceptionJY.PhoneNumberNotExitsException;
import com.cskaoyan.exceptionJY.UsernameRepeatException;
import com.cskaoyan.model.bo.LoginBo;
import com.cskaoyan.model.bo.systembo.CodeBo;
import com.cskaoyan.model.bo.systembo.RegisterBo;
import com.cskaoyan.model.bo.systembo.ResetBo;
import com.cskaoyan.model.vo.systemvo.RegisterVo;
import com.cskaoyan.model.vo.systemvo.WxLoginVo;

public interface AuthService {
    void regCaptcha(CodeBo codeBo) throws PhoneNumberException;

    RegisterVo register(RegisterBo registerBo) throws Exception;

    void reset(ResetBo resetBo) throws CodeErrorException, PhoneNumberNotExitsException;

    WxLoginVo login(LoginBo loginBo);
}
